// 云函数入口文件
const cloud = require('wx-server-sdk')
const ruleid='cloud://cloud1-6gso5km2a228414f.636c-cloud1-6gso5km2a228414f-1310085182/zq_jf_mao/gz.txt'
cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {

  //读取文件

  const res = await cloud.downloadFile({
    fileID: ruleid
  })

  const d_buffer = res.fileContent;
  let cot=d_buffer.toString('utf8')
  let wz=cot.trim().split('\n')

  return  {
    title:wz[0],
    tip:wz[1],
    article:wz.slice(2)
  }
}